↳ Prolog
↳ PrologToPiTRSProof
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP2_IN_AAG(X1s, .(X, X2s), Xs)
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U2_AAG(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → APP1_IN_GGA(X1s, X2s, Zs)
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U1_GGA(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
PERM_IN_GA(Xs, .(X, Ys)) → APP2_IN_AAG(X1s, .(X, X2s), Xs)
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → U2_AAG(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → APP1_IN_GGA(X1s, X2s, Zs)
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → U1_GGA(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_GA(Xs, X, Ys, perm_in_ga(Zs, Ys))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
APP1_IN_GGA(.(X, Xs), Ys, .(X, Zs)) → APP1_IN_GGA(Xs, Ys, Zs)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
APP1_IN_GGA(.(Xs), Ys) → APP1_IN_GGA(Xs, Ys)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APP2_IN_AAG(.(X, Xs), Ys, .(X, Zs)) → APP2_IN_AAG(Xs, Ys, Zs)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APP2_IN_AAG(.(Zs)) → APP2_IN_AAG(Zs)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
perm_in_ga(Xs, .(X, Ys)) → U3_ga(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U3_ga(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_ga(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
U4_ga(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → U5_ga(Xs, X, Ys, perm_in_ga(Zs, Ys))
perm_in_ga([], []) → perm_out_ga([], [])
U5_ga(Xs, X, Ys, perm_out_ga(Zs, Ys)) → perm_out_ga(Xs, .(X, Ys))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
PERM_IN_GA(Xs, .(X, Ys)) → U3_GA(Xs, X, Ys, app2_in_aag(X1s, .(X, X2s), Xs))
U4_GA(Xs, X, Ys, X1s, X2s, app1_out_gga(X1s, X2s, Zs)) → PERM_IN_GA(Zs, Ys)
U3_GA(Xs, X, Ys, app2_out_aag(X1s, .(X, X2s), Xs)) → U4_GA(Xs, X, Ys, X1s, X2s, app1_in_gga(X1s, X2s, Zs))
app2_in_aag(.(X, Xs), Ys, .(X, Zs)) → U2_aag(X, Xs, Ys, Zs, app2_in_aag(Xs, Ys, Zs))
app2_in_aag([], Ys, Ys) → app2_out_aag([], Ys, Ys)
app1_in_gga(.(X, Xs), Ys, .(X, Zs)) → U1_gga(X, Xs, Ys, Zs, app1_in_gga(Xs, Ys, Zs))
app1_in_gga([], Ys, Ys) → app1_out_gga([], Ys, Ys)
U2_aag(X, Xs, Ys, Zs, app2_out_aag(Xs, Ys, Zs)) → app2_out_aag(.(X, Xs), Ys, .(X, Zs))
U1_gga(X, Xs, Ys, Zs, app1_out_gga(Xs, Ys, Zs)) → app1_out_gga(.(X, Xs), Ys, .(X, Zs))
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
PERM_IN_GA(Xs) → U3_GA(app2_in_aag(Xs))
U3_GA(app2_out_aag(X1s, .(X2s))) → U4_GA(app1_in_gga(X1s, X2s))
U4_GA(app1_out_gga(Zs)) → PERM_IN_GA(Zs)
app2_in_aag(.(Zs)) → U2_aag(app2_in_aag(Zs))
app2_in_aag(Ys) → app2_out_aag([], Ys)
app1_in_gga(.(Xs), Ys) → U1_gga(app1_in_gga(Xs, Ys))
app1_in_gga([], Ys) → app1_out_gga(Ys)
U2_aag(app2_out_aag(Xs, Ys)) → app2_out_aag(.(Xs), Ys)
U1_gga(app1_out_gga(Zs)) → app1_out_gga(.(Zs))
app2_in_aag(x0)
app1_in_gga(x0, x1)
U2_aag(x0)
U1_gga(x0)
U3_GA(app2_out_aag(X1s, .(X2s))) → U4_GA(app1_in_gga(X1s, X2s))
app2_in_aag(Ys) → app2_out_aag([], Ys)
POL(.(x1)) = 2 + x1
POL(PERM_IN_GA(x1)) = 2 + 2·x1
POL(U1_gga(x1)) = 2 + x1
POL(U2_aag(x1)) = 2 + x1
POL(U3_GA(x1)) = 2·x1
POL(U4_GA(x1)) = 2 + 2·x1
POL([]) = 0
POL(app1_in_gga(x1, x2)) = x1 + x2
POL(app1_out_gga(x1)) = x1
POL(app2_in_aag(x1)) = 1 + x1
POL(app2_out_aag(x1, x2)) = x1 + x2
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
PERM_IN_GA(Xs) → U3_GA(app2_in_aag(Xs))
U4_GA(app1_out_gga(Zs)) → PERM_IN_GA(Zs)
app2_in_aag(.(Zs)) → U2_aag(app2_in_aag(Zs))
app1_in_gga(.(Xs), Ys) → U1_gga(app1_in_gga(Xs, Ys))
app1_in_gga([], Ys) → app1_out_gga(Ys)
U2_aag(app2_out_aag(Xs, Ys)) → app2_out_aag(.(Xs), Ys)
U1_gga(app1_out_gga(Zs)) → app1_out_gga(.(Zs))
app2_in_aag(x0)
app1_in_gga(x0, x1)
U2_aag(x0)
U1_gga(x0)